#include<stdio.h>

void main()
{
	int i, num;
	int ary[5];

	do
	{
		printf("input five digit number\n");
		scanf("%d", &num);
	}
	while(num < 10000 || num > 99999);

	for(i = 0 ; i < 5 ; i++)
	{
		ary[i] = num % 10;
		num = num / 10;
	}

	if(ary[0] == ary[4] && ary[1] == ary[3])
	{
		printf("this number is palindrome\n");
	}
	else
	{
		printf("this number not palindrome\n");
	}

}
